{* genre_list *}
{load_presentation_object filename="genre_list" assign="obj"}
<div class="browsebox">
    <div class="title">BY GENRE</div>
{* Start genre list here *}
<ul>
    {* Loop through the list of genres *}
    {section name=i loop=$obj->mGenres}
        {assign var=selected value=""}
        {* Verify if the genre is selected to decide what CSS style to use *}
        {if ($obj->mSelectedGenre == $obj->mGenres[i].genre_id)}
            {assign var=selected value="class=\"selected\""}    
        {/if}
        <li>
            {* Generate a link for a new genre in the list *}
            <a {$selected} href="{$obj->mGenres[i].link_to_genre}">{$obj->mGenres[i].genre}</a>
        </li>
    {/section}
</ul>
{* End menu list *}
</div>